package cate.common.table.activity.wishblessing.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.wishblessing.row.WishBlessingBanRow;

public class WishBlessingBanSheet extends ESheet<WishBlessingBanRow> {
    @Override
    public String getSheetName() {
        return "禁用英雄库";
    }

    public boolean existHero(int group, int heroId) {
        return getHeroRow(group, heroId) != null;
    }

    public WishBlessingBanRow getHeroRow(int group, int heroId) {
        return getList().stream().filter(e -> e.group == group && e.heroTid == heroId).findAny().orElse(null);
    }
}
